package hku.cs.lunuo.cost;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class FromExpenseTo100 {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		File f = new File(args[0]);

		BufferedReader br = new BufferedReader(new FileReader(f));

		String s = br.readLine();
		List<List<Double>> toData = new ArrayList<List<Double>>();
		while (s != null) {
			//System.out.println(s);
			String[] xx = s.split("\t");
			List<Double> inData = new ArrayList<Double>();
			for(int i=0; i<xx.length; i++ ){
				inData.add(Double.valueOf(xx[i]));
				if(Double.valueOf(xx[i])>1)
					System.out.println("xxxxx"+Double.valueOf(xx[i]));
			}
			toData.add(inData);
			s = br.readLine();
		}
		
		
		
		//System.out.println(toData.size());
		for(int i=0; i<toData.size(); i++){
			List<Double> inData = toData.get(i);
			//for(Double d : inData)	System.out.print(d);
			//System.out.println();
		}
		
		float z = 0;
		for(int j=0; j<=100; j++){
			//System.out.print(z);System.out.print(" ");
			for(int i=0; i<24; i++){
				int count=0;
				for(int m=0; m<toData.size();m++)
					if(toData.get(m).get(i)*100<=z) count++;
				System.out.print((float)count/toData.size());
				System.out.print("\t");
			}
			z=z+1;
			System.out.println();
		}
	}

}
